<%@ Page Language="C#" MasterPageFile="~/Administration/main.master" AutoEventWireup="true"
    CodeFile="Languages.aspx.cs" Inherits="Tathata.Web.Administration.Administration_Languages" %>

<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <h4>
        Languages</h4>
    <asp:GridView ID="gvLanguages" runat="server" AutoGenerateColumns="False" Width="100%">
        <Columns>
            <asp:BoundField DataField="LanguageID" HeaderText="LanguageID" Visible="False"></asp:BoundField>
            <asp:TemplateField HeaderText="Name" ItemStyle-Width="25%">
                <ItemTemplate>
                    <a href="LanguageDetails.aspx?LanguageID=<%#Eval("LanguageID")%>">
                        <%#Server.HtmlEncode(Eval("Name").ToString())%>
                    </a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="LanguageCulture" HeaderText="Language culture" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField DataField="Published" HeaderText="Published" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:BoundField DataField="DisplayOrder" HeaderText="Display order" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center"></asp:BoundField>
            <asp:TemplateField HeaderText="View string resources" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="15%" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="LocaleStringResources.aspx?LanguageID=<%#Eval("LanguageID")%>">View string
                        resources</a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="15%"
                ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="LanguageDetails.aspx?LanguageID=<%#Eval("LanguageID")%>">Edit </a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br>
    <input type="button" onclick="location.href='LanguageAdd.aspx'" value="Add new" id="btnAddNew"
        class="adminButton" />
    <br />
</asp:Content>
